home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 4 / Meeting Pearls Vol. IV (1996)(GTI - Schatztruhe)[!].iso / Pearls / dev / C-Src / LayerHook / ImageBackFill.h < prev    next >
C/C++ Source or Header  |  1995-03-19  |  1KB  |  44 lines

  1. /*
  2. ** $VER: ImageBackFill.h 1.13 (19.3.95)
  3. **
  4. ** Tests backfill hooks in screens
  5. **
  6. ** (W) 1992-95 by Pierre Carrette & Walter Dörwald
  7. */
  8.  
  9. #include <intuition/screens.h>
  10. #include <datatypes/pictureclass.h>
  11. #include <clib/macros.h>
  12. #include <proto/exec.h>
  13. #include <proto/dos.h>
  14. #include <proto/intuition.h>
  15. #include <proto/graphics.h>
  16. #include <proto/datatypes.h>
  17. #include <string.h>
  18.  
  19. struct BackFillOptions
  20. {
  21.     WORD MaxCopyWidth;  // maximum width for the copy
  22.     WORD MaxCopyHeight; // maximum height for the copy
  23.     BOOL CenterX;       // center the tiles horizontally?
  24.     BOOL CenterY;       // center the tiles vertically?
  25.     WORD OffsetX;       // offset to add
  26.     WORD OffsetY;       // offset to add
  27.     BOOL OffsetTitleY;  // add the screen titlebar height to the vertical offset?
  28. };
  29.  
  30. struct BackFillInfo
  31. {
  32.     struct Hook            Hook;
  33.     struct Screen         *Screen;
  34.     Object                *PictureObject;
  35.     struct BitMapHeader   *BitMapHeader;
  36.     struct BitMap         *BitMap;
  37.     WORD                   CopyWidth;
  38.     WORD                   CopyHeight;
  39.     struct BackFillOptions Options;
  40. };
  41.  
  42. BOOL LoadBackgroundImage(struct BackFillInfo *BFI,STRPTR PicName,struct Screen *Scr,struct BackFillOptions *BFO);
  43. void UnloadBackgroundImage(struct BackFillInfo *BFI);
  44.